package com.mallcai.bigdata.ladon.service.report.node;

import com.mallcai.bigdata.ladon.service.report.impl.ReportQueryParamHolder;

import java.util.Map;

/**
 * 静态报表sql节点,直接返回sql
 * @author feixy
 * @version 1.0
 * @date 2019-08-03 16:00
 */
public class StaticReportSqlNode implements SingleReportSqlNode{

    private String sql;

    public StaticReportSqlNode(String sql) {
        this.sql = sql;
    }

    @Override
    public String toSql(Map<String, ReportQueryParamHolder> params) {
        return this.sql;
    }
}
